MacBinary | 2000-10-06 | 1.5 KB | [clpt/drag] |
Confidence | Program | Detection | Match Type | Support |
---|---|---|---|---|
66% | dexvert | TRS-80 CLP File (image/trs80Clp) | ext | Supported |
66% | dexvert | PC Paint Image (image/pcPaint) | ext | Supported |
66% | dexvert | Windows Clipboard (image/windowsClipboard) | ext | Supported |
10% | dexvert | MacBinary (archive/macBinary) | fallback | Supported |
1% | dexvert | Quattro Pro Clip Art (image/quattroProClipArt) | ext | Unsupported |
1% | dexvert | Home Plan Pro 5 Clip (other/homePlanPro5Clip) | ext | Unsupported |
100% | file | MacBinary II, inited, Mon May 8 14:40:20 2000, modified Fri Oct 6 15:36:30 2000, creator 'drag', type 'clpt' "Rotate.clp", at 0x80 1337 bytes resource Apple HFS/HFS+ resource fork, map offset 0x4f3, map length 0x46, data length 0x3f3, nextResourceMap 0xf385020, fileRef 0x3fe, list offset 0x1c, name offset 0x46, 2 types, 0x54455854 'TEXT' * 1 resource offset 0x12 | default (weak) | |
99% | file | data | default | |
74% | TrID | Mac Text clippings (MacBinary) | default | |
25% | TrID | MacBinary 2 | default (weak) | |
100% | siegfried | fmt/1762 MacBinary (II) | default | |
100% | lsar | MacBinary | default |
id metadata | |
---|---|
key | value |
macFileType | [clpt] |
macFileCreator | [drag] |
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 52 6f 74 61 74 65 | 2e 63 6c 70 00 00 00 00 |..Rotate|.clp....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 63 6c 70 74 64 72 61 | 67 01 00 00 00 00 00 00 |.clptdra|g.......|
|00000050| 00 00 00 00 00 00 00 00 | 00 05 39 b5 3c ba 94 b6 |........|..9.<...|
|00000060| 03 da 3e 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..>.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 88 93 00 00 |........|........|
|00000080| 00 00 01 00 00 00 04 f3 | 00 00 03 f3 00 00 00 46 |........|.......F|
|00000090| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 0a 52 6f 74 61 74 65 2e | 63 6c 70 69 65 54 6f 46 |.Rotate.|clpieToF|
|000000c0| 69 6c 65 2e 63 6c 70 6c | 70 6c 70 70 6c 70 70 79 |ile.clpl|plpplppy|
|000000d0| 02 00 63 6c 70 74 64 72 | 61 67 01 00 ff ff ff ff |..clptdr|ag......|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 b5 3c b3 8c 00 00 | 00 00 00 00 05 39 00 00 |...<....|.....9..|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 03 cb 09 2f 2f 20 | 73 65 74 20 74 68 65 20 |.....// |set the |
|00000190| 63 6f 6e 74 65 6e 74 73 | 20 6f 66 20 61 20 6d 61 |contents| of a ma|
|000001a0| 74 72 69 78 20 73 6f 20 | 74 68 61 74 20 69 74 20 |trix so |that it |
|000001b0| 70 65 72 66 6f 72 6d 73 | 20 6e 6f 20 74 72 61 6e |performs| no tran|
|000001c0| 73 66 6f 72 6d 61 74 69 | 6f 6e 0d 09 53 65 74 49 |sformati|on..SetI|
|000001d0| 64 65 6e 74 69 74 79 4d | 61 74 72 69 78 28 20 26 |dentityM|atrix( &|
|000001e0| 6d 61 74 72 69 78 20 29 | 3b 0d 09 0d 09 2f 2f 20 |matrix )|;....// |
|000001f0| 6d 6f 64 69 66 79 20 74 | 68 65 20 63 6f 6e 74 65 |modify t|he conte|
|00000200| 6e 74 73 20 6f 66 20 61 | 20 6d 61 74 72 69 78 20 |nts of a| matrix |
|00000210| 73 6f 20 74 68 61 74 20 | 69 74 20 64 65 66 69 6e |so that |it defin|
|00000220| 65 73 20 61 20 72 6f 74 | 61 74 69 6f 6e 20 6f 70 |es a rot|ation op|
|00000230| 65 72 61 74 69 6f 6e 0d | 09 2f 2f 20 39 30 20 64 |eration.|.// 90 d|
|00000240| 65 67 72 65 65 73 20 74 | 6f 20 74 68 65 20 72 69 |egrees t|o the ri|
|00000250| 67 68 74 20 2d 20 61 6e | 63 68 6f 72 20 61 74 20 |ght - an|chor at |
|00000260| 30 2e 30 20 74 6f 70 2d | 6c 65 66 74 20 0d 09 52 |0.0 top-|left ..R|
|00000270| 6f 74 61 74 65 4d 61 74 | 72 69 78 28 20 26 6d 61 |otateMat|rix( &ma|
|00000280| 74 72 69 78 2c 09 09 09 | 2f 2f 20 70 6f 69 6e 74 |trix,...|// point|
|00000290| 65 72 20 74 6f 20 74 68 | 65 20 6d 61 74 72 69 78 |er to th|e matrix|
|000002a0| 20 73 74 72 75 63 74 75 | 72 65 0d 09 09 09 09 20 | structu|re..... |
|000002b0| 20 4c 6f 6e 67 32 46 69 | 78 28 20 39 30 20 29 2c | Long2Fi|x( 90 ),|
|000002c0| 09 2f 2f 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f |.// the |number o|
|000002d0| 66 20 64 65 67 72 65 65 | 73 20 6f 66 20 72 6f 74 |f degree|s of rot|
|000002e0| 61 74 69 6f 6e 20 4e 4f | 54 45 3a 20 54 48 49 53 |ation NO|TE: THIS|
|000002f0| 20 49 53 20 41 20 46 49 | 58 45 44 20 56 41 4c 55 | IS A FI|XED VALU|
|00000300| 45 0d 09 09 09 09 20 20 | 30 2c 09 09 09 09 2f 2f |E..... |0,....//|
|00000310| 20 78 20 63 6f 6f 72 64 | 69 6e 61 74 65 20 6f 66 | x coord|inate of|
|00000320| 20 61 6e 63 68 6f 72 20 | 70 6f 69 6e 74 0d 09 09 | anchor |point...|
|00000330| 09 09 20 20 30 20 29 3b | 09 09 09 09 2f 2f 20 79 |.. 0 );|....// y|
|00000340| 20 63 6f 6f 72 64 69 6e | 61 74 65 20 6f 66 20 61 | coordin|ate of a|
|00000350| 6e 63 68 6f 72 20 70 6f | 69 6e 74 0d 09 0d 09 09 |nchor po|int.....|
|00000360| 20 20 0d 09 2f 2f 20 77 | 65 20 6e 65 65 64 20 74 | ..// w|e need t|
|00000370| 6f 20 72 65 74 75 72 6e | 20 74 68 65 20 74 6f 70 |o return| the top|
|00000380| 2d 6c 65 66 74 20 63 6f | 72 6e 65 72 20 6f 66 20 |-left co|rner of |
|00000390| 74 68 65 20 72 6f 74 61 | 74 65 64 20 69 6d 61 67 |the rota|ted imag|
|000003a0| 65 20 62 61 63 6b 20 74 | 6f 20 69 74 27 73 0d 09 |e back t|o it's..|
|000003b0| 2f 2f 20 6f 72 69 67 69 | 6e 2c 20 73 6f 20 61 64 |// origi|n, so ad|
|000003c0| 64 20 61 20 74 72 61 6e | 73 6c 61 74 69 6f 6e 20 |d a tran|slation |
|000003d0| 76 61 6c 75 65 20 74 6f | 20 61 20 73 70 65 63 69 |value to| a speci|
|000003e0| 66 69 65 64 20 6d 61 74 | 72 69 78 20 0d 09 54 72 |fied mat|rix ..Tr|
|000003f0| 61 6e 73 6c 61 74 65 4d | 61 74 72 69 78 28 20 26 |anslateM|atrix( &|
|00000400| 6d 61 74 72 69 78 2c 09 | 09 09 09 09 09 09 2f 2f |matrix,.|......//|
|00000410| 20 70 6f 69 6e 74 65 72 | 20 74 6f 20 74 68 65 20 | pointer| to the |
|00000420| 6d 61 74 72 69 78 20 73 | 74 72 75 63 74 75 72 65 |matrix s|tructure|
|00000430| 0d 09 09 09 09 09 20 4c | 6f 6e 67 32 46 69 78 28 |...... L|ong2Fix(|
|00000440| 20 6e 61 74 75 72 61 6c | 42 6f 75 6e 64 73 2e 62 | natural|Bounds.b|
|00000450| 6f 74 74 6f 6d 20 29 2c | 09 2f 2f 20 64 65 6c 74 |ottom ),|.// delt|
|00000460| 61 48 20 2d 20 76 61 6c | 75 65 20 61 64 64 65 64 |aH - val|ue added|
|00000470| 20 74 6f 20 74 68 65 20 | 78 20 63 6f 6f 72 64 69 | to the |x coordi|
|00000480| 6e 61 74 65 20 4e 4f 54 | 45 3a 20 46 49 58 45 44 |nate NOT|E: FIXED|
|00000490| 20 56 41 4c 55 45 53 0d | 09 09 09 09 09 20 30 20 | VALUES.|..... 0 |
|000004a0| 29 3b 09 09 09 09 09 09 | 09 09 2f 2f 20 64 65 6c |);......|..// del|
|000004b0| 74 61 56 20 2d 20 76 61 | 6c 75 65 20 61 64 64 65 |taV - va|lue adde|
|000004c0| 64 20 74 6f 20 74 68 65 | 20 79 20 63 6f 6f 72 64 |d to the| y coord|
|000004d0| 69 6e 61 74 65 20 0d 09 | 0d 09 2f 2f 20 73 65 74 |inate ..|..// set|
|000004e0| 20 74 68 65 20 74 72 61 | 6e 73 66 6f 72 6d 61 74 | the tra|nsformat|
|000004f0| 69 6f 6e 20 6d 61 74 72 | 69 78 20 74 6f 20 75 73 |ion matr|ix to us|
|00000500| 65 20 66 6f 72 20 64 72 | 61 77 69 6e 67 20 61 6e |e for dr|awing an|
|00000510| 20 69 6d 61 67 65 09 09 | 09 20 0d 09 65 72 72 20 | image..|. ..err |
|00000520| 3d 20 47 72 61 70 68 69 | 63 73 49 6d 70 6f 72 74 |= Graphi|csImport|
|00000530| 53 65 74 4d 61 74 72 69 | 78 28 20 69 6d 70 6f 72 |SetMatri|x( impor|
|00000540| 74 65 72 2c 20 26 6d 61 | 74 72 69 78 20 29 3b 00 |ter, &ma|trix );.|
|00000550| 00 00 20 00 00 00 01 00 | 00 00 04 00 00 00 00 00 |.. .....|........|
|00000560| 00 00 01 54 45 58 54 00 | 00 01 00 00 00 00 00 00 |...TEXT.|........|
|00000570| 00 00 00 00 00 01 00 00 | 00 04 f3 00 00 03 f3 00 |........|........|
|00000580| 00 00 46 0f 38 50 20 03 | fe 00 00 00 1c 00 46 00 |..F.8P .|......F.|
|00000590| 01 54 45 58 54 00 00 00 | 12 64 72 61 67 00 00 00 |.TEXT...|.drag...|
|000005a0| 1e 01 00 ff ff 00 00 00 | 00 00 db 5d 44 00 80 ff |........|...]D...|
|000005b0| ff 00 00 03 cf 00 db 40 | 84 00 00 00 00 00 00 00 |.......@|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+